import request from '@/utils/request'
const module = '/admin/product/brand'

export const GetBrandList = (pageNum, pageSize) => {
  return request.get(`${module}/brandList/${pageNum}/${pageSize}`)
}

export const Brands = () => {
  return request.get(`${module}/list`)
}

export const GetBrandById = id => {
  return request.get(`${module}/getBrandById/${id}`)
}
export const DeleteBrand = id => {
  return request.delete(`${module}/deletedBrand/${id}`)
}
export const UpdateBrand = data => {
  return request.put(`${module}/updateBrand`, data)
}

export const SaveBrand = data => {
  return request.post(`${module}/saveBrand`, data)
}
